﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using FluentValidation.Attributes;
using IT.CMS.Web.Areas.Administration.Validators.Settings;
using IT.CMS.Web.Framework;
using IT.CMS.Web.Framework.Mvc;

namespace IT.CMS.Web.Areas.Administration.Models.Settings
{
    [Validator(typeof(SettingValidator))]
    public partial class SettingModel : BaseCmsEntityModel
    {
        [CmsResourceDisplayName("Admin.Configuration.Settings.AllSettings.Fields.Name")]
        [AllowHtml]
        public string Name { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Settings.AllSettings.Fields.Value")]
        [AllowHtml]
        public string Value { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Settings.AllSettings.Fields.SiteName")]
        public string Site { get; set; }
        public int SiteId { get; set; }
    }
}